//
//  CloudDao.h
//  iCloudLib
//
//  Created by 宣佚 on 14/12/29.
//  Copyright (c) 2014年 刘宣佚. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CloudDao : NSObject

/**
*  申请手机注册验证码，对应API 1
*
*  @param topInfo   申请手机注册验证码上传信息
*  @param success   成功返回 NSMutableDictionary
*  @param failure   失败返回
*  @param exception 异常返回
*/
+(void)GetRegisterVerityCode:(NSDictionary *)topInfo
                     success:(void (^)(id returnValue))success
                     failure:(void (^)(NSString *errorMessage))failure
                   exception:(void (^)(NSString *errorMessage))exception;

/**
 *  验证手机注册验证码，对应API 2
 *
 *  @param topInfo   验证手机注册验证码上传信息
 *  @param success   成功返回 NSMutableDictionary
 *  @param failure   失败返回
 *  @param exception 异常返回
 */
+(void)VerityRegisterCode:(NSDictionary *)topInfo
                  success:(void (^)(id returnValue))success
                  failure:(void (^)(NSString *errorMessage))failure
                exception:(void (^)(NSString *errorMessage))exception;

/**
 *  手机账号注册，对应API 3
 *
 *  @param topInfo   手机账号注册上传信息
 *  @param success   成功返回 NSMutableDictionary
 *  @param failure   失败返回
 *  @param exception 异常返回
 */
+(void)RegisterUser:(NSDictionary *)topInfo
            success:(void (^)(id returnValue))success
            failure:(void (^)(NSString *errorMessage))failure
          exception:(void (^)(NSString *errorMessage))exception;


@end
